package com.ykt.controller;

import java.util.List;

import com.jfinal.ext.route.ControllerBind;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.ykt.model.User;
@ControllerBind(controllerKey="/user")
public class UserController extends BaseController<User>{
	public UserController(){
		super(User.class);
	}
	
	public void combobox() {
        List<Record> list = null;
        String sql = "SELECT u.id,u.name FROM user u where u.role='CUSTOMER'";
        list = Db.find(sql);

        this.renderJson(list);
    }
}
